Skip to contentSkip to conversation

Incorrect rendering in CS:GO

Bug 100239 [email protected] 1 participant 30 messages Mar 16, 2017 – Sep 25, 2019

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=100239

Bug ID: 100239
Summary: Incorrect rendering in CS:GO
Product: Mesa
Version: git
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/Gallium/radeonsi
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]

Created attachment 130271
--> https://bugs.freedesktop.org/attachment.cgi?id=130271&action=edit
Broken AUG scope

In windows, when you're aiming with AUG the screen around the scope is blurred. On Mesa we have strange black pattern. The pattern changes on each cs:go restart.

I can reproduce it on Mesa 17.1-git + llvm 5.0 + RX480 and on stock Ubuntu 16.04.2 (Mesa 13.0, I believe) + R7 240

Note: green rectangles are not the bug, it's me hiding my steam name.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#1 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=100239

--- Comment #1 from Samuel Pitoiset <[email protected]> --- Thanks for reporting this.

It would be nice if you can upload good/bad screenshots. And it would be very nice if you can record an apitrace which reproduces the issue.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=100239

Vedran Miletić <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Blocks|                            |77449

Referenced Bugs:

https://bugs.freedesktop.org/show_bug.cgi?id=77449
[Bug 77449] Tracker bug for all bugs related to Steam titles

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=100239

--- Comment #2 from Ernst Sjöstrand <[email protected]> ---
I can't reproduce this with my Fury, and have never seen it, for reference... Any tweaks like R600_DEBUG etc?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=100239

--- Comment #3 from Bruno Jacquet (Xaapyks) <[email protected]> --- Hello,

I have the same problem on my RX 480 and current mesa git.
I produced an apitrace but it is ~734MiB and trimming seems to be corrupting it, I might be doing something wrong.
How should I share and eventually trim/extract only the relevant part from the trace?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=100239

--- Comment #4 from Nicolai Hähnle <[email protected]> --- You can upload the trace on Google Drive or some similar storage service.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#6 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=100239

--- Comment #5 from Bruno Jacquet (Xaapyks) <[email protected]> --- I took another apitrace, which I uploaded here : http://dl.free.fr/u43NDpptG
But when I replay my traces (glretrace), I notice :
- Graphical corruptions when I open the ingame console or when a map is loaded (which is NOT a problem I seen during normal runtime). The menu is fine.
- The scope bug (this report subject) is not visible from the replayed trace on my end...

Maybe it is an apitrace bug from my side? Not sure if I may report this to the apitrace project, this happens in apitrace from git too.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#7 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=100239

--- Comment #6 from Michel Dänzer <[email protected]> ---
Try setting the environment variable MESA_EXTENSION_OVERRIDE=-GL_ARB_buffer_storage when capturing the apitrace.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#8 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=100239

--- Comment #7 from Bruno Jacquet (Xaapyks) <[email protected]> --- Thank you very much Michel, indeed masking this extension produces a correct trace that can be replayed to reproduce the scope bug.

So here is a new apitrace showing the bug : http://dl.free.fr/oD7tgoSw9

For reference, the outside of the scope is supposed to be slightly blurred. Random screenshot found on google images to show the expected rendering :
http://misc.team-aaa.com/perso_skullgun/MaJCSGO/Augscope.jpg

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#9 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=100239

--- Comment #8 from Samuel Pitoiset <[email protected]> --- Thanks for the trace.

The issue can be reproduced with mesa/llvm from today on RX480. I'm investigating.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#10 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=100239

Grazvydas Ignotas <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #9 from Grazvydas Ignotas <[email protected]> --- Created attachment 131302
--> https://bugs.freedesktop.org/attachment.cgi?id=131302&action=edit
bo clear hack, needs 4.9 kernel at least

This seems to be the same problem as with DOOM Vulkan, some buffer is not cleared when it should be. It still needs to be investigated wether it's game's fault or radeonsi's though...

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#11 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=100239

--- Comment #10 from Bruno Jacquet (Xaapyks) <[email protected]> --- Thank you Samuel.

Grazvydas, thanks for the patch, it does fix the visual issue, even though I understand this is not a proper fix. I did not notice a performance drop (in CS:GO at least) with it, so I will be using until this issue is resolved.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#12 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=100239

--- Comment #11 from [email protected] ---
There is no corruption on scope with current mesa git + llvm 6.0 on TAHITI. I don't have RX480 anymore, so I can't test it with POLARIS.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#13 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=100239

Timothy Arceri <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #12 from Timothy Arceri <[email protected]> --- The apitrace link not longer works so can't test on POLARIS but assuming this is fixed as per comment 11. Please reopen if this is not the case.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#14 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=100239

--- Comment #13 from Bruno Jacquet (Xaapyks) <[email protected]> --- Created attachment 140499
--> https://bugs.freedesktop.org/attachment.cgi?id=140499&action=edit
issue on 18.1.3

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#15 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=100239

Bruno Jacquet (Xaapyks) <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

         Resolution|FIXED                       |---
             Status|RESOLVED                    |REOPENED

--- Comment #14 from Bruno Jacquet (Xaapyks) <[email protected]> --- Unfortunately this is not resolved on RX480 and mesa 18.1.3. I attached a screenshot of the issue.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#16 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=100239

--- Comment #15 from [email protected] --- (In reply to Bruno Jacquet (Xaapyks) from comment #14)

Quoted 2 lines

Unfortunately this is not resolved on RX480 and mesa 18.1.3. I attached a screenshot of the issue.

I confirm this is happening on mesa-git + RX560. Unfortunately, the hardware is not mine, so I cannot test it with bo clear hack. There is also some texture corruption ob de_nuke, but i'm not sure if it's related to this bug:
https://i.imgur.com/tjfI2uY.jpg. If someone can test these with bo clear hack please do it, I can't do it myself as I'm still waiting for the refund money for my dead RX480 :(

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#17 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=100239

--- Comment #16 from Bruno Jacquet (Xaapyks) <[email protected]> --- Here is the apitrace for the scope bug :
http://xaapyks.info/csgo_linux64.3.trace.bz2 (mesa 18.1.3) md5 = a876e4fd64168486c3e6dfefd9edca86

It seems I have to set STEAM_RUNTIME=0 to reproduce it.

Quoted 1 line

There is also some texture corruption ob de_nuke, but i'm not sure if it's related to this bug: https://i.imgur.com/tjfI2uY.jpg.

I am not experiencing this.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#18 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=100239

--- Comment #17 from [email protected] ---
Still happens with Mesa git master 9fc1ce258cf956d21a9d4940a3c10c5547d93408, Polaris10 only, Oland and Tahiti are not affected.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#19 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=100239

--- Comment #18 from [email protected] ---
Is this bug still being worked on?

The problem is still here, but there's a little update: sometimes texture gets cleared correctly.

Currently running Mesa git master 31e4c9ce400341df9b0136419b3b3c73b8c9eb7e

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#20 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=100239

--- Comment #19 from Timothy Arceri <[email protected]> --- If you run steam from the command line with:

R600_DEBUG=zerovram steam

Does that fix the issue for you?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#21 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=100239

--- Comment #20 from [email protected] ---
(In reply to Timothy Arceri from comment #19)

Quoted 1 line

Does that fix the issue for you?

Yes, it does fix scope rendering for me.
Is any negative performance impact to be expected with that flag? Also, is it doing effectively same thing as patch from comment #9?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#22 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=100239

--- Comment #21 from Timothy Arceri <[email protected]> --- (In reply to network723 from comment #20)

Quoted 5 lines

(In reply to Timothy Arceri from comment #19)

Quoted 1 line

Does that fix the issue for you?

Yes, it does fix scope rendering for me.
Is any negative performance impact to be expected with that flag?

Potentially but it's unlikely to be noticeable.

Quoted 1 line

Also, is it doing effectively same thing as patch from comment #9?

Yes.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

author Acked-by Bas Nieuwenhuizen
#23 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=100239

Timothy Arceri <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

         Resolution|---                         |FIXED
             Status|REOPENED                    |RESOLVED

--- Comment #22 from Timothy Arceri <[email protected]> --- Should be fixed by:

commit 49025292fbbf285d4473d2c20a83b6c533a79d45

Author: Timothy Arceri <[email protected]>
Date:   Mon May 6 14:39:44 2019 +1000

radeonsi: add config entry for Counter-Strike Global Offensive

This fixes rendering issues with gun scopes which is rather important.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=100239

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#24 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=100239

Bruno Jacquet (Xaapyks) <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---

--- Comment #23 from Bruno Jacquet (Xaapyks) <[email protected]> --- Since my last message I upgraded my GPU, I now have a Vega 64, and in mesa 19.1.3 I still have the issue, the AUG scope is being all garbled with black patches.

mesa 19.1.3 appears to have a cherry-pick of the commit (825ca9e42eacd305a63f63c61fbbe6348b0266aa) and I checked, I do have the conf in my filesystem:

$ grep -A2 "Counter-Strike Global Offensive" 
/usr/share/drirc.d/00-mesa-defaults.conf
        <application name="Counter-Strike Global Offensive"
executable="csgo_linux64">
            <option name="radeonsi_zerovram" value="true" />
        </application>

So I'd say the issue is still there.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#25 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=100239

--- Comment #24 from Bruno Jacquet (Xaapyks) <[email protected]> --- Created attachment 144987
--> https://bugs.freedesktop.org/attachment.cgi?id=144987&action=edit
vega 64 on mesa 19.1.3

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#26 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=100239

--- Comment #25 from Michel Dänzer <[email protected]> --- (In reply to Bruno Jacquet (Xaapyks) from comment #23)

Quoted 1 line

So I'd say the issue is still there.

Maybe you have a ~/.drirc or other drirc file which gets picked up and disables radeonsi_zerovram? (E.g. due to ever starting the old "driconf" application with a driver which supported the option)

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#27 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=100239

--- Comment #26 from Bruno Jacquet (Xaapyks) <[email protected]> --- (In reply to Michel Dänzer from comment #25)

Quoted 6 lines

(In reply to Bruno Jacquet (Xaapyks) from comment #23)

Quoted 1 line

So I'd say the issue is still there.

Maybe you have a ~/.drirc or other drirc file which gets picked up and disables radeonsi_zerovram? (E.g. due to ever starting the old "driconf" application with a driver which supported the option)

~/.drirc and /etc/drirc do not exist on my fs. /usr/share/drirc.d only contains 00-mesa-defaults.conf which is not modified from what the mesa build provides and is packaged in Arch.

strace seems to confirm it is not loading any other "drirc" file any and I don't have any "*MESA*" or "*GL*" env var.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#28 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=100239

--- Comment #27 from Timothy Arceri <[email protected]> --- (In reply to Bruno Jacquet (Xaapyks) from comment #26)

Quoted 8 lines

(In reply to Michel Dänzer from comment #25)

Quoted 6 lines

(In reply to Bruno Jacquet (Xaapyks) from comment #23)

Quoted 1 line

So I'd say the issue is still there.

Maybe you have a ~/.drirc or other drirc file which gets picked up and disables radeonsi_zerovram? (E.g. due to ever starting the old "driconf" application with a driver which supported the option)

Quoted 6 lines

~/.drirc and /etc/drirc do not exist on my fs. /usr/share/drirc.d only contains 00-mesa-defaults.conf which is not modified from what the mesa build provides and is packaged in Arch.

strace seems to confirm it is not loading any other "drirc" file any and I don't have any "*MESA*" or "*GL*" env var.

I just tested the trace from comment 16 on my Vega 64 and using the environment variable fixed the issue for me. Do you have an old kernel? radeonsi_zeroram=true will do nothing on pre 4.9 kernels.

If you have at least 4.9 can you try closing steam then running it from the command line with:

radeonsi_zeroram=true steam

And then run CS:GO. This should force the setting even if your system is not picking up the right config file.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#29 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=100239

GitLab Migration User <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|REOPENED                    |RESOLVED
         Resolution|---                         |MOVED

--- Comment #28 from GitLab Migration User <[email protected]> --- -- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/1261.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel